package cloud.tianai.ram.policy.core.action;

import cloud.tianai.ram.policy.core.StandardMatchHandler;
import cloud.tianai.ram.policy.core.Match;
import org.springframework.core.annotation.Order;

import java.util.Collection;

/**
 * @Author: 天爱有情
 * @date 2022/3/7 14:26
 * @Description Action 处理器
 */
@Order(20)
public interface ActionHandler extends StandardMatchHandler {

    /**
     * 匹配
     *
     * @param currentAction   当前action
     * @param matchingActions 匹配的action
     * @return Match
     */
    Match match(String currentAction, Collection<String> matchingActions);
}
